﻿@model Resto.CostControl.Core.Models.SysSettings.Privilege
@{
    ViewBag.Title = "权限维护";
    Layout = "~/Views/Shared/_LayoutForm.cshtml"; 
}
<style type="text/css">
    .pageFormContent p
    {
        width: auto;
    }
</style>
@using (Html.AjaxBeginForm("SavePrivilege"))
{ 
    <div class="pageFormContent">
        @Html.HiddenFor(model => model.Id)
        @Html.HiddenFor(Model => Model.ParentId)
        @Html.HiddenFor(Model => Model.ParentCode)
        @Html.DWZTextBoxFor(model => model.ParentName, new { style = "width:340px" }).ReadOnly().Required()
        @Html.DWZTextBoxFor(model => model.PrivilegeCode, new { style = "width:340px" }).Required()
        @Html.DWZTextBoxFor(model => model.PrivilegeName, new { style = "width:340px" }).Required()
        @Html.DWZDropDownListFor(model => model.PrivilegeType, "PrivilegeType", new { style = "width:348px" }).Required()
        @Html.DWZTextBoxFor(model => model.Uri, new { style = "width:340px" })
        @Html.DWZTextBoxFor(model => model.SeqNo, new { style = "width:340px" }).Required()
        @Html.DWZTextAreaFor(model => model.Remark, new { style = "width:340px" })
    </div>
}
@Html.FormBar()
